<template name="Sidebar">
	<view class="sidebar" v-show="this.$store.state.ifShowMenu">
		<view class="item" @tap="goHome()">
			<view class="name">
				网站首页
			</view>
		</view>
		<view class="item" @tap="goAbout()">
			<view class="name">
				关于我们
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="item" @tap="goNews()">
			<view class="name">
				新闻资讯
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="item" @tap="goService()">
			<view class="name">
				业务范围
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="item" @tap="goCase()">
			<view class="name">
				客户案例
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="item" @tap="goTalent()">
			<view class="name">
				人才发展
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="item" @tap="goMessage()">
			<view class="name">
				在线留言
			</view>
		</view>
		<view class="item" @tap="goConnect()">
			<view class="name">
				联系我们
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		name: "Sidebar",
		data(){
			return {
			}
		},
		onLoad() {
		},
		methods:{
			closeMenu(){
				this.$store.commit('SHOWMENU', false);
			},
			goHome(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/index/index'
				})
			},
			goAbout(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/about/about'
				})
			},
			goNews(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/news/news'
				})
			},
			goService(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/service/service'
				})
			},
			goCase(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/case/case'
				})
			},
			goTalent(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/talent/talent'
				})
			},
			goMessage(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/message/message'
				})
			},
			goConnect(){
				this.closeMenu();
				uni.navigateTo({
					url: '../../pages/connect/connect'
				})
			},
		}
	}
</script>

<style>
	@import url("./index.css");
</style>
